<template>
	<view>
		<view class="">
			这是列表页
		</view>
		<view class="list" v-for="item in list">
			{{item}}
		</view>
		<button type="default" v-on:click="startpull">下来实现</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:['范冰冰','李冰冰','吴冰冰','刘冰冰','范冰冰','李冰冰','吴冰冰','刘冰冰']
			}
		},
		onPullDownRefresh() {
			console.log('触发下拉刷新')
			setTimeout(()=>{
				this.list=['刘德华','范德华','吴德华','李德华']
				uni.stopPullDownRefresh()
			},2000)
		},
		onReachBottom() {
			console.log('上拉加载')
			this.list=[...this.list,...['刘德华','范德华','吴德华','李德华']]
		},
		methods: {
			startpull(){
				uni.startPullDownRefresh({
					
				})
			}
		}
	}
</script>

<style>
	.list{
		width: 100%;
		height: 100px;
	}
</style>
